Skip to content

Expose LPP data type size lookup via a static method#1196

Closed
ssozonoff wants to merge 1 commit intomeshcore-dev:devfrom
ssozonoff:dev
Closed

Expose LPP data type size lookup via a static method#1196
ssozonoff wants to merge 1 commit intomeshcore-dev:devfrom
ssozonoff:dev

Conversation

@ssozonoff
Copy link
Copy Markdown

Useful for other code needing to parse the LPP encoded telemetry data.

}
bool readCurrent(float& amps) {
amps = getFloat(&_buf[_pos], 2, 1000, true); _pos += 2;
amps = getFloat(&_buf[_pos], 2, 1000, false); _pos += 2;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed to signed in last commit. Please update your branch

* @param type The LPP type code
* @return Number of bytes of data for this type
*/
static inline uint8_t getLPPDataSize(uint8_t type) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be neater if this was a public static method in the helper class

@liamcottle
Copy link
Copy Markdown
Member

Closing due to lack of activity.

@liamcottle liamcottle closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants